package com.example.fileserver.entity;

import lombok.Getter;

/**
 * @author yousj
 */
@Getter
public enum ResConst {

    OK(200, "成功!"),
    BAD_REQUEST(400, "错误的请求, 请检查请求参数!"),
    NOT_FOUND_ERROR(404, "请求不存在!"),
    METHOD_NOT_ALLOWED(405, "请求方式不支持!"),
    SYSTEM_ERROR(500, "服务繁忙，请稍后再试!");

    private int code;
    private String message;

    ResConst(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
